package org.codeblue.support.db;

import org.codeblue.support.utils.Maps;
import org.beetl.core.Configuration;
import org.beetl.core.GroupTemplate;
import org.beetl.core.Template;
import org.beetl.core.resource.FileResourceLoader;

import java.io.IOException;
import java.util.Map;

/**
 * Created by jl.hu on 2017/4/5.
 */
public class EntityBuilder {

    public static void main(String[] args) throws IOException {
        String root = "E:/Cluture_code/trunk/culture-support/src/main/java/com/sicent/support/api/doc";
        FileResourceLoader resourceLoader = new FileResourceLoader(root,"utf-8");
        Configuration cfg = Configuration.defaultConfiguration();
        GroupTemplate gt = new GroupTemplate(resourceLoader, cfg);
        Template t = gt.getTemplate("/entity.tpl");

        Map param = Maps.toMap("package","com.sicent.support.api.test");
        t.binding(param);
    }


}
